@extends('admin.layout')

@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
                <li><a href="#">分类管理</a></li>
                <li class="active">添加分类</li>
            </ol>
        </section>
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12" style="width: 100%;">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title"></h3>
                        </div>
                        <form action="{{ url('admin/category/addCategory') }}" method="post">
                            {{ csrf_field() }}
                            <div class="box-body" style="width: 50%;">
                                <div class="form-group">
                                    <label for="exampleInputCate">父级分类:</label>
                                    <select name="parent" class="form-control">>
                                        <option  value="0" >请选择</option>
                                        @foreach($list as $value)
                                            <option value="{{ $value['id'] }}">{{ $value['name'] }}</option>
                                        @endforeach
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputName">分类名称:</label>
                                    <input type="text" name="name" value="" class="form-control" id="exampleInputName" placeholder="category name">
                                </div>
                            </div>
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>
    </div>
@stop